package com.ctcemti.mdm.project.sys.entity;

import com.ctcemti.mdm.project.sys.entity.formdata.BaseReq;
import com.ctcemti.mdm.project.sys.entity.formdata.BaseReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @ClassName InfDisciplines
 * @Description 专业领域
 * @Author bxf
 * @Date 10:54 2019/7/12
 * @Version V1.0
 **/
@Data
@ApiModel(value = "专业领域")
public class InfDisciplines extends BaseReq {
    /**
     * 主键id
     */
    @Id
    @ApiModelProperty(value = "主键id",required = true)
    private Integer id;

    /**
     * ifd
     */
    @ApiModelProperty(value = "fid")
    private String fid;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 类型
     */
     @ApiModelProperty(value = "类型")
    private Integer type;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private Integer pid;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String comment;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String creator;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createDate;
    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    private String modifiedBy;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date modifyDate;

    @Transient
    @ApiModelProperty(value = "修改时间")
    private boolean isParent = true;
}